﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Batman.Core.Utils
{
    public class JsonUtil
    {
        public static string Serialize<T>(T obj)
        {
            return Newtonsoft.Json.JsonConvert.SerializeObject(obj);
        }

        public static T Deserialize<T>(string str)
        {
            return Newtonsoft.Json.JsonConvert.DeserializeObject<T>(str);
        }
    }
}